class {
    handleCustomEvent(data) {
        this.receivedData = data;
    }
}

<custom-tag on-custom-event("handleCustomEvent")/>
